package cn.liontalk.concurrent.shuati;

import java.util.Scanner;

public class DaoPaiXun {

    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        double sum = 0;
        double fushuCount = 0;
        double feifushuCount = 0;
        while (sc.hasNext()) {

            double a = sc.nextInt();
            if (a >= 0) {
                sum = sum + a;
                feifushuCount++;
            } else {
                fushuCount++;
            }
        }
        System.out.println(fushuCount);
        if (feifushuCount == 0) {
            System.out.println(0);
        } else {
            System.out.printf("%.1f\n", (sum / feifushuCount));
        }
    }
}
